var InputNumber = require('../../../src/libs/input-number');
var Root = React.createClass({
    click: function () {
        alert(this.refs.inputnumber.getValue())
    },
    render: function () {
        return (
            <div>

                <InputNumber step="500" max="5000" min="1" value="2000" ref="inputnumber">
                </InputNumber>
                <br/>
                <br/>
                <button onclick={this.click.bind(this)}>取值</button>
            </div>
        )
    }
});

ReactDOM.render(<Root/>, document.getElementById('main'));